/**
 * Created by user on 2017/3/1.
 */
import ReservationOrderList from './reservationOrderList'
import ReservationOrderIndex from './reservationOrderIndex'
const reservationOrderRouter = {

  path: 'landlord/rentManage/reservationOrderList',
  getChildRoutes(location, cb) {
    require.ensure([], (require) => {
      cb(null, [
        {
          path: 'list',
          getComponents(nextState, cb) {
            require.ensure([], function (require) {
                cb(null, ReservationOrderList)
            })
          },
        },


      ])
    })
  },
  indexRoute: {
    getComponents(location, cb) {
      require.ensure([], function (require) {
          cb(null, ReservationOrderList)
      })
      return cb()
    }
  },
  getComponents(nextState, cb) {
    require.ensure([], (require)=> {
      cb(null, ReservationOrderIndex)
    })
  }
}

export default reservationOrderRouter;